package com.hospital.api;

import com.hospital.api.factory.RemoteFileFallbackFactory;
import com.hospital.common.core.constants.ServiceNameConstants;
import com.hospital.common.core.module.controller.dto.BillDto;
import com.hospital.common.core.result.Tip;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

@FeignClient(contextId = "remoteBillService",value = ServiceNameConstants.BILL_SERVICE,fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteBillService {
    @RequestMapping("/queryOrder/orderPrice")
    public BillDto getBillDiscountList(@RequestBody String param, HttpServletResponse httpServletResponse) ;
    @RequestMapping("/commbill/refundcharge")
    public Tip refundcharge(@RequestBody String param, HttpServletResponse httpServletResponse);
}
